from django.urls import path,re_path
from SearchHospital.views import DepartmentModelListView, HospitalModelListView, HospitalModelDetailView

urlpatterns = [
    # 获取科室信息
    path('departments/', DepartmentModelListView.as_view()),
    # 获取医院信息
    path('hospitals/', HospitalModelListView.as_view()),
    # 获取指定医院的详细信息
    path('hospitals/<int:id>/', HospitalModelDetailView.as_view()),
]
